package com.dragon.modules.yuegou.model.marketing;

import com.dragon.modules.yuegou.entity.marketing.AnnouncementEntity;
import com.dragon.modules.yuegou.enums.marketing.AnnouncementStatus;
import com.dragon.modules.yuegou.enums.marketing.AnnouncementType;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 公告信息表模型类
 * 
 * @author pbuilder generated
 * @date 2019-04-09 09:51:23
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Announcement extends AnnouncementEntity {

	@ApiModelProperty("所属商圈")
	private String busdName;

	public String getBusdName() {
		return busdName;
	}

	public void setBusdName(String busdName) {
		this.busdName = busdName;
	}

	/**
	 * 构造一个空公告信息表模型对象
	 */
	public Announcement(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个公告信息表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public Announcement(AnnouncementEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个公告信息表模型对象
	 * 
	 * @param other 其它对象
	 */
	public Announcement(Announcement other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public Announcement id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 * @return 当前对象
	 */
    public Announcement busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getTitle() {
    	return title;
    }

    /**
	 * 设置标题
	 * 
	 * @param title 标题
	 * @return 当前对象
	 */
    public Announcement title(String title) {
    	this.title = title;
    	return this;
    }

	@Override
	public String getImg() {
    	return img;
    }

    /**
	 * 设置
	 * 
	 * @param img 
	 * @return 当前对象
	 */
    public Announcement img(String img) {
    	this.img = img;
    	return this;
    }

	@Override
	public String getRemarks() {
    	return remarks;
    }

    /**
	 * 设置简介
	 * 
	 * @param remarks 简介
	 * @return 当前对象
	 */
    public Announcement remarks(String remarks) {
    	this.remarks = remarks;
    	return this;
    }

	@Override
	public AnnouncementType getType() {
    	return type;
    }

    /**
	 * 设置[枚举]类型：0-活动-ACTIVITY、1-咨询-ADVISORY、2-政策-POLICY
	 * 
	 * @param type [枚举]类型：0-活动-ACTIVITY、1-咨询-ADVISORY、2-政策-POLICY
	 * @return 当前对象
	 */
    public Announcement type(AnnouncementType type) {
    	this.type = type;
    	return this;
    }

	@Override
	public String getInfo() {
    	return info;
    }

    /**
	 * 设置公告内容
	 * 
	 * @param info 公告内容
	 * @return 当前对象
	 */
    public Announcement info(String info) {
    	this.info = info;
    	return this;
    }

	@Override
	public Integer getReadVolume() {
    	return readVolume;
    }

    /**
	 * 设置阅读量
	 * 
	 * @param readVolume 阅读量
	 * @return 当前对象
	 */
    public Announcement readVolume(Integer readVolume) {
    	this.readVolume = readVolume;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置创建人ID
	 * 
	 * @param createdBy 创建人ID
	 * @return 当前对象
	 */
    public Announcement createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public Announcement createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置更新人ID
	 * 
	 * @param modifiedBy 更新人ID
	 * @return 当前对象
	 */
    public Announcement modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置更新时间
	 * 
	 * @param modifiedTime 更新时间
	 * @return 当前对象
	 */
    public Announcement modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置逻辑删除，1表示已删除,0表示未删除
	 * 
	 * @param del 逻辑删除，1表示已删除,0表示未删除
	 * @return 当前对象
	 */
    public Announcement del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置删除人ID
	 * 
	 * @param delBy 删除人ID
	 * @return 当前对象
	 */
    public Announcement delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置删除时间
	 * 
	 * @param delTime 删除时间
	 * @return 当前对象
	 */
    public Announcement delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }

	@Override
	public AnnouncementStatus getStatus() {
    	return status;
    }

    /**
	 * 设置[枚举]状态：0-未发送-UNSEND、1-已发送-SEND
	 * 
	 * @param status [枚举]状态：0-未发送-UNSEND、1-已发送-SEND
	 * @return 当前对象
	 */
    public Announcement status(AnnouncementStatus status) {
    	this.status = status;
    	return this;
    }

}
